package com.lanou.mapper;

import com.lanou.bean.BaseResult;
import com.lanou.bean.BlogBean;
import com.lanou.bean.PageBean;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BlogMapper {

    BaseResult<BlogBean> selectPageAll();

    List<BlogBean> pageSelect(PageBean<BlogBean> pageBean);

    Integer getTotal();

    void addBlog(BlogBean blogBean);

    List<BlogBean> selectAll();

    BlogBean showBlog(int bid);

    List<BlogBean> showMyBlog(int uid);

}
